<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%-- 
    Document   : bienvenido
    Created on : 29/09/2010, 08:25:41 PM
    Author     : u201013952
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Bienvenido: <%=request.getParameter("username")%></h2>
        Usando EL (Expresion Language)<br>
        <h2>Usuario: ${user.username}<br></h2>
        <h2>Clave: ${user.password}<br></h2>
        <h2>Nombre: ${user.nombre}<br></h2>
        <h2>Apellido: ${user.apellido}<br></h2>
        <br><br>
        <h3>Roles</h3>
        <table>
            <c:forEach var="rol" items="${user.roles}">
                <tr><td>${rol.nombre}</td></tr>
            </c:forEach>
        </table>
    </body>
</html>
